﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media;

namespace Heroius.BlueMeasure
{
    public class MeasureRecord: INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;
        void RaisePropertyChangedEvent(string PropertyName)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(PropertyName));
        }

        public void RaiseAllPropertiesChangedEvent()
        {
            RaisePropertyChangedEvent("Length");
            RaisePropertyChangedEvent("Visible");
            RaisePropertyChangedEvent("Time");
            RaisePropertyChangedEvent("Color");
        }

        public double Length { get; set; }
        public double Claim { get;set;}

        public bool Visible { get; set; } = true;
        public DateTime Time { get; set; }

        public UIElement Attached;

        public Color Color { get; set; }
    }
}
